package com.laoniu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 商品退货表
 * </p>
 *
 * @author lxl
 * @since 2023-12-17
 */
@TableName("goods_return")
public class GoodsReturn implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 供应商
     */
    @TableField("supplier_id")
    private Long supplierId;

    /**
     * 商品
     */
    @TableField("goods_id")
    private Long goodsId;

    /**
     * 支付类型
     */
    @TableField("pay_type")
    private Byte payType;

    /**
     * 退货时间
     */
    @TableField("return_time")
    private LocalDateTime returnTime;

    /**
     * 退货单价
     */
    private BigDecimal price;

    /**
     * 退货数量
     */
    private Integer num;

    /**
     * 退货总价
     */
    @TableField("sum_price")
    private BigDecimal sumPrice;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建时间
     */
    @TableField("op_time")
    private LocalDateTime opTime;

    /**
     * 操作人id
     */
    @TableField("op_id")
    private Long opId;

    /**
     * 操作人姓名
     */
    @TableField("op_name")
    private String opName;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Byte getPayType() {
        return payType;
    }

    public void setPayType(Byte payType) {
        this.payType = payType;
    }

    public LocalDateTime getReturnTime() {
        return returnTime;
    }

    public void setReturnTime(LocalDateTime returnTime) {
        this.returnTime = returnTime;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public BigDecimal getSumPrice() {
        return sumPrice;
    }

    public void setSumPrice(BigDecimal sumPrice) {
        this.sumPrice = sumPrice;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public LocalDateTime getOpTime() {
        return opTime;
    }

    public void setOpTime(LocalDateTime opTime) {
        this.opTime = opTime;
    }

    public Long getOpId() {
        return opId;
    }

    public void setOpId(Long opId) {
        this.opId = opId;
    }

    public String getOpName() {
        return opName;
    }

    public void setOpName(String opName) {
        this.opName = opName;
    }
}
